package com.javaweb.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.javaweb.admin.entity.NCGeneraloutB;
import com.javaweb.admin.entity.NCGeneraloutH;
import com.javaweb.admin.query.KdlGMQuery;
import com.javaweb.admin.query.NCGeneralOutQuery;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface NCGeneraloutHMapper extends BaseMapper<NCGeneraloutH> {
    IPage<NCGeneraloutH> getNCGeneralOutList(IPage<NCGeneraloutH> page,@Param("req") NCGeneralOutQuery req);

    @Select("select * from v_nc_generalout_b where cgeneralhid=#{cgeneralhid} order by materialcode")
    List<NCGeneraloutB> getNCGeneralOutDetail(String cgeneralhid);

    @Select("select distinct billtypename from v_nc_generalout_b order by billtypename")
    List<String> getBillTypeList();
}
